class Constant:
    not_feasible_penalty = -1  # 错误迁移的惩罚
    migration_cost_item = 3  # 迁移成本的系数
    migration_cost_param = {"loc": 0.2, "sigma": 0.3}  # 迁移成本正太系数
    server_index = 1  # state中服务所部署的server所处的下标

    state_user_id_index = 0
    state_point_x_index = 1
    state_point_y_index = 2
    state_service_data_size_index = 3
    state_service_require_cycle_index = 4
    state_server_id_index = 5

    # 基本参数
    # 频率
    Hz = 1
    kHz = 1000 * Hz
    mHz = 1000 * kHz
    GHz = 1000 * mHz

    # 数据大小
    bit = 1
    B = 8 * bit
    KB = 1024 * B
    MB = 1024 * KB
    GB = 1024 * MB

    # state
    #([x, y, user_direction, user_speed, container_size,task_size, service_server, single_state = np.hstack((user_position, single_state, server_x, server_y))

    user_x_index = 0
    user_y_index = 1
    user_speed_index = 2
    container_size_index = 3
    task_size_index = 4
    service_server_index = 5

    env3_user_x_index = 0
    env3_user_y_index = 1
    env3_user_direction_index = 2
    env3_service_server_index = 3

